package com.mao.swagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 小毛同学
 * @version 1.0
 * @data 2022/1/2 12:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)  //开启链式编程
@ApiModel("用户信息实体")
public class User implements Serializable {

    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("姓名")
    private String username;

    @ApiModelProperty("年龄")
    private Integer age;
}
